package cn.sunxyz.data.sample.dao;


import cn.sunxyz.data.orm.domain.CrudDatabase;
import cn.sunxyz.data.sample.domain.User;
import cn.sunxyz.data.sample.domain.UserDO;

import java.util.List;

/**
 * Created by yangrd on 2017/6/5.
 */
public interface UserDao extends CrudDatabase<User, Integer> {

    @Override
    User findOne(Integer integer);

    User findById(Integer id);

    List<UserDO> findByNameLike(String name);

    int deleteByNameLike(String name);
}
